package com.example.gobang_system.websockethandler.result;

import lombok.Data;

import java.io.Serializable;

@Data
public class PutChessResult implements Serializable {
    /**
     * 落子玩家 id
     */
    private Long userId;
    /**
     * 落子位置——行
     */
    private Integer row;
    /**
     * 落子位置——列
     */
    private Integer col;
    /**
     * 获胜玩家 id
     */
    private Long winner;

    public PutChessResult() {}
    public PutChessResult(Long userId, int row, int col, Long winner) {
        this.userId = userId;
        this.row = row;
        this.col = col;
        this.winner = winner;
    }
}
